WC_Braintree\PayPal\Buttons\Abstract_Button A

Total Complexity 63
Dependencies 5
Dependents 0
Total lines 687
Lines of code 273
Logical lines of code 106
Comment lines 260
Methods 34
Properties 2

Methods 34

Method Rating Maintainability Complexity Lines of code
is_single_use()
S
63 7 10
set_customer_data()
S
45 3 50
set_ship_to_different_address()
S
61 5 12
set_checkout_value()
S
57 4 16
disable_other_gateways()
S
63 4 11
enqueue_styles()
S
60 3 21
render_button()
S
58 3 17
render_cancel_link()
S
61 3 11
render()
S
66 2 9
handle_wc_api()
S
75 2 5
process_wc_api_request()
S
65 2 9
get_js_handler_args()
S
57 1 15
get_handler_js()
S
71 2 5
add_hooks()
S
73 2 6
get_gateway()
S
82 1 3
clear_session_data()
S
73 1 6
get_js_handler_name()
S
75 1 4
is_checkout_confirmation()
S
81 1 3
log_event()
S
81 1 3
get_cart_nonce()
S
81 1 3
__construct()
S
77 1 4
get_button_locale()
S
81 1 3
get_button_currency()
S
81 1 3
get_button_total()
S
82 1 3
is_enabled()
S
82 1 3
get_additional_button_params()
S
82 1 3
get_button_params()
S
65 1 8
render_js()
S
81 1 3
get_additional_js_handler_params()
S
82 1 3
get_js_handler_params()
S
75 1 4
get_form_handler_params()
S
73 1 5
is_wc_api_request_valid()
S
100 1 0
add_button_hooks()
S
63 1 9
is_logging_enabled()
S
81 1 3